<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<style>
.member{background: none repeat scroll 0 0 #F5F5F5;box-shadow: 0 0 4px #FFFFFF;font-size: 15px;margin-left: 118px;display:none;margin-top:4px;}
.member a{margin:10px 0;color:#666666;line-height: 30px;}
.member li{padding:0 15px;}
.member li:hover{background: none repeat scroll 0 0 #E6E6FA}
.caret{background: url("/my2013/common/image/ui-icon.png") repeat scroll -67px -18px transparent;display: inline-block;height: 10px;width: 10px;}
</style>
<script>
	$(function(){
		$("span[class='topmenu'] a").hover(
			function(){
				$(".member").slideDown();
			}
		)
		$(".member").mouseleave(
			function(){
				$(".member").slideUp();
			}
		)
		$(":not(.member ul li a)").click(function(){
			$(".member").slideUp();
		})
	})
</script>
<div id="myheader">
<div class="fr headerbar">
	<div class="fr tophotline">
	<s:if test="#session.userName!=null">
	<a href="${pageContext.request.contextPath}/view/index.action"  class="topmenu">首页</a>
	<span class="topmenu">欢迎您，<a href="${pageContext.request.contextPath}/view/member/index.action">${userName}</a><b class="caret"></b></span>
	<a href="${pageContext.request.contextPath}/view/member/loginOut.action" class="topmenu" >退出</a>
	<div class="member">
	<ul>
		<li>
		<a href="${pageContext.request.contextPath}/view/member/index.action">个人中心</a>
		</li>
		<li>
		<a href="${pageContext.request.contextPath}/view/member/getOrderList.action">我的订单</a>
		</li>
		<li>
		<a href="${pageContext.request.contextPath}/view/member/reviewList.action">我的点评</a>
		</li>
	</ul>
	</div>
	</s:if>
	<s:else>
	<a href="${pageContext.request.contextPath}/view/index.action"  class="topmenu">首页</a>
	<a href="${pageContext.request.contextPath}/view/member/reg.jsp"  class="topmenu">会员注册</a>
	<a href="${pageContext.request.contextPath}/view/member/login.jsp"  id="customerlogin" class="topmenu">会员登录</a>
	</s:else>
	 </div>
</div>
<div class="fl logo"><a href="${pageContext.request.contextPath}/" title=""><img src="${pageContext.request.contextPath}/common/image/logo.png" /></a></div>
</div>
